import React from 'react';
import { connect } from 'dva';
import { Spin, Row, Col, Modal, Button } from 'antd';
import styles from './Main.css';

import MainLayout from '../../components/MainLayout/MainLayout';
import Grid from '../../components/Grid/Grid'

class App extends React.Component {
    constructor(props) {
        super(props)
        this.state = {}
    }
    componentWillMount(){
        this.props.dispatch({
            type: 'clock/change',
            payload: {
                visible: false
            }
        })
        this.props.dispatch({
            type: 'cardProcess/clear',
            payload: {
                data: null
            }
        })
        this.props.dispatch({
            type: 'getCard/clear',
            payload: {
                data: null
            }
        })
    }
    
    render() {
        return (
            <MainLayout>
                <Grid />
            </MainLayout>
        );
    }
}

export default connect()(App);
